<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>测试</title>
    <link rel="stylesheet" href="index.css" />
  </head>
  <body>
    <input type="text" id="myInput" placeholder="搜索公司..." />
    <table id="myTable">
      <tr>
        <!--0 代表 name 字段，1 代表 url 字段-->
        <th onclick="sortTable(0)">公司名称</th>
        <th onclick="sortTable(1)">国家</th>
      </tr>
      <tr>
        <td>Runoob</td>
        <td>www.runoob.com</td>
      </tr>
      <tr>
        <td>Google</td>
        <td>www.google.com</td>
      </tr>
      <tr>
        <td>Baidu</td>
        <td>www.baidu.com</td>
      </tr>
      <tr>
        <td>Zhihu</td>
        <td>www.zhihu.com</td>
      </tr>
      <tr>
        <td>Weibo</td>
        <td>www.weibo.com</td>
      </tr>
      <tr>
        <td>Taobao</td>
        <td>www.taobao.com</td>
      </tr>
    </table>

    <script src="index.js"></script>
  </body>
</html>
